@font-face {
    font-family: 'iconfont';
    src: url('../fonts/iconfont.eot');
    src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/iconfont.woff2') format('woff2'),
        url('../fonts/iconfont.woff') format('woff'),
        url('../fonts/iconfont.ttf') format('truetype'),
        url('../fonts/iconfont.svg#iconfont') format('svg');
}

.account img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#header {
    position: absolute;
    top: 0;
    z-index: 10;
    min-width: 1200px;
    width: 100%;
    height: 64px;
    font-weight: normal;
    position: absolute;
    background-color: #f9f9f9;

    nav {
        background-color: transparent;
        border: none;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    .longin {
        color: #000;
        display: block;
        width: 70px;
        height: 32px;
        border: 1px solid #1746e0;
        border-radius: 5px;
        transition: all 233ms;
    }

    .register {
        color: #fff;
        background-color: #1746e0;
        display: block;
        width: 70px;
        height: 32px;
        border: 1px solid #1746e0;
        border-radius: 5px;
        transition: all 233ms;
    }

    .logo {
        float: left;
        height: 64px;
        /* background-color: pink; */
        text-align: center;
        line-height: 32px;
        color: #1746e0;

        span {
            font-size: 25px;
            font-weight: 1000;
        }

        img {
            line-height: 45px;
            height: 50px;
            vertical-align: middle;
        }

        h2 {
            display: inline-block;
            margin: 0;
            font-weight: normal;
            line-height: 64px;
        }
    }

    .hd-nav {
        float: right;

        li {
            height: 62px;
            box-sizing: border-box;
            padding: 15px 20px;
            text-align: center;
            line-height: 32px;
            margin: 0 10px;
            background-color: #f9f9f9;

            &:first-child a {
                background-color: transparent !important;
            }

            a {
                padding: 0 !important;
                line-height: 32px;
            }

            &.screen-xs {
                color: black;
            }

            // &:last-child {
            //   display: none;
            // }

            &:hover {
                border-bottom: 1px solid #1746e0;

                a {
                    color: #1746e0;
                }
            }

            &:nth-last-child(2) {
                padding: 15px 0;

                &:hover {
                    border: none;

                    a {
                        color: #000;
                    }
                }
            }

            &:last-child {
                padding: 15px 0;

                &:hover {
                    border: none;

                    a {
                        color: white;
                    }
                }
            }
        }
    }

    //以下为自适应
    @media screen and (min-width: 992px) and (max-width: 1199px) {
        & {
            min-width: 992px !important;
            max-width: 1199px;

            .hd-nav li {
                padding: 15px 3px;
            }
        }
    }

    @media screen and (min-width: 768px) and (max-width: 991px) {
        & {
            min-width: 768px !important;
            max-width: 991px;

            .logo h2,
            .logo span {
                font-size: 20px;
            }

            .hd-nav li {
                padding: 15px 3px;

                .longin {
                    width: 60px;
                    height: 30px;
                    line-height: 30px;
                    margin-top: 1px;
                }

                .register {
                    width: 60px;
                    height: 30px;
                    line-height: 30px;
                    margin-top: 1px;
                }
            }
        }
    }

    //小于767px(bootstrap中的md),将选项压缩成一个图标
    @media only screen and (max-width: 767.5px) {
        & {
            min-width: 50px !important;
            max-width: 767px;
            font-size: 12px;

            .logo h2,
            .logo span {
                font-size: 15px;
            }

            .hd-nav li {
                height: 32px;
                // display: none;
                padding: 3px 3px !important;
                margin: 0 3px !important;

                &:hover {
                    border: none;
                }

                a:hover {
                    color: #1746e0 !important;
                }

                .longin {
                    width: 60px;
                    height: 30px;
                    line-height: 30px;
                    margin-top: 1px;
                    border: none;
                }

                .register {
                    width: 60px;
                    height: 30px;
                    line-height: 30px;
                    margin-top: 1px;
                    border: none;
                    background-color: transparent;
                    color: #000;
                }
            }
        }
    }
}